package com.dd.shop4j.console.goods.controller.forms;

import org.springframework.web.multipart.MultipartFile;

import com.dd.shop4j.goods.model.GoodsDescription;
import com.dd.shop4j.goods.model.GoodsInfo;

/**
 * 商品表单信息
 * 
 * @author tangshu
 *
 */
public class GoodForm {

	//商品详情
	private GoodsInfo good;
	//商品描述
	private GoodsDescription description;
	//上传商品图片
	private MultipartFile image;
	//相册id号 修改时用的
	private Integer[] imageIds;
	//上传商品相册
	private MultipartFile[] images;
	//商品属性明细id
	private Integer[] attrDetailIds;
	//商品属性值id 用于修改
	private Integer[] goodAttrDetailIds;
	//属性值
	private String[] attrValues;

	public void setGood(GoodsInfo good) {
		this.good = good;
	}
	
	public GoodsInfo getGood() {
		return good;
	}

	public GoodsDescription getDescription() {
		return description;
	}

	public void setDescription(GoodsDescription description) {
		this.description = description;
	}

	public MultipartFile getImage() {
		return image;
	}

	public void setImage(MultipartFile image) {
		this.image = image;
	}

	public Integer[] getImageIds() {
		return imageIds;
	}
	
	public void setImageIds(Integer[] imageIds) {
		this.imageIds = imageIds;
	}
	
	public MultipartFile[] getImages() {
		return images;
	}

	public void setImages(MultipartFile[] images) {
		this.images = images;
	}

	public Integer[] getAttrDetailIds() {
		return attrDetailIds;
	}

	public void setAttrDetailIds(Integer[] attrDetailIds) {
		this.attrDetailIds = attrDetailIds;
	}

	public Integer[] getGoodAttrDetailIds() {
		return goodAttrDetailIds;
	}

	public void setGoodAttrDetailIds(Integer[] goodAttrDetailIds) {
		this.goodAttrDetailIds = goodAttrDetailIds;
	}

	public String[] getAttrValues() {
		return attrValues;
	}

	public void setAttrValues(String[] attrValues) {
		this.attrValues = attrValues;
	}

}
